<div>
  <ul>
    <li>
      <a [routerLink]="['/maintenance/new']" routerLinkActive="active"></a>
    </li>
    <li *ngFor="let type of types" [class.selected]="type === selectedType"
        (click)="onSelect(type)">
      <div class="row">
        <a [routerLink]="['/maintenance/edit',type.oid]">
          <div class="col-sm-7 col-sm-offset-1">
            <label class="listInfo">{{type.name}}</label>
            <input type="hidden" value="{{type.oid}}">
          </div>
        </a>
        <div class="col-sm-3 buttonStyle style_right" >
          <button id="btn_typedel" type="button" class="btn btn-default btn-sm buttonDelete" (click)="delType(type)">
            删除
          </button>
        </div>
      </div>

    </li>
  </ul>
</div>
